import request from '@/utils/request'

// 查询信访认领列表
export function listClaim(query) {
  return request({
    url: '/letter/claim/page',
    method: 'get',
    params: query
  })
}

// 查询信访认领列表
export function listAllClaim(query) {
  return request({
    url: '/letter/claim/list',
    method: 'get',
    params: query
  })
}

// 查询信访认领详细
export function getClaim(id) {
  return request({
    url: '/letter/claim/' + id,
    method: 'get'
  })
}

// 新增信访认领
export function addClaim(data) {
  return request({
    url: '/letter/claim',
    method: 'post',
    data: data
  })
}

// 修改信访认领
export function updateClaim(data) {
  return request({
    url: '/letter/claim',
    method: 'put',
    data: data
  })
}

// 删除信访认领
export function delClaim(id) {
  return request({
    url: '/letter/claim/' + id,
    method: 'delete'
  })
}
